package com.firebird.app.kotlin.stock.ui.regist.contract

import com.firebird.app.kotlin.stock.base.BaseView
import com.firebird.app.kotlin.stock.data.SimpleBean
import io.reactivex.Flowable
import okhttp3.RequestBody


interface RegistContract {
    interface Model {
        fun getCode(body: RequestBody?): Flowable<SimpleBean?>?
        fun getData(body: RequestBody?): Flowable<SimpleBean?>?
    }

    interface View : BaseView {
        override fun showLoading()
        override fun hideLoading()
        override fun onError(throwable: Throwable?)
        fun onSuccess(bean: SimpleBean?)
        fun onSuccessRegist(bean: SimpleBean?)
    }

    interface Presenter {
        fun getCode(body: RequestBody?)
        fun getData(body: RequestBody?)
    }
}